package com.hghivln.erpwarehouse.system.service;

import com.hghivln.erpwarehouse.system.common.lang.DataGridlView;
import com.hghivln.erpwarehouse.system.common.lang.Result;
import com.hghivln.erpwarehouse.system.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hghivln.erpwarehouse.system.vo.UserVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hghivln
 * @since 2021-06-21
 */
public interface UserService extends IService<User> {

    DataGridlView queryUserMaxOrderNum();

    /**
     * 根据用户名查询用户信息
     */
    User queryUserByLoginName(String username);

    DataGridlView queryAllUser(UserVo userVo);

    User addUser(User user);

    User updateUser(User user);

    List<Integer> queryRoleIdsByUid(Integer uid);

    void saveUserRole(Integer rid, Integer[] mids);

    void resetUserPwd(Integer id);


    Result changePassword(String oldPassword, String newPwdOne, String againPassword, Integer id);
}
